/*
 * @Author: your name
 * @Date: 2020-06-15 10:39:08
 * @LastEditTime: 2020-06-15 15:27:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \codeSnippet\server\app\controller\user.js
 */
'use strict'
const BaseController = require('./base')
class UserController extends BaseController {
  constructor() {
    super()
    this.createRule = {
      nickname: {
        type: 'string',
      },
      password: {
        type: 'string',
      },
    }
  }

  async index() {
    const { ctx } = this
    ctx.body = 'hi User'
  }
  async login() {
    const { ctx } = this
    ctx.body = 'hi login'
  }
  async register() {
    const { ctx } = this
    ctx.body = 'hi register'
  }
  async verify() {
    const { ctx } = this
    ctx.body = 'hi verify'
  }
  async info() {
    const { ctx } = this
    ctx.body = 'hi inof'
  }
}

module.exports = UserController
